#include <stdio.h>
#include <stdlib.h>
#include "single_link.h"


int main()
{
    SingleLinkNode* data = (SingleLinkNode *)malloc(sizeof(SingleLinkNode));
    if (NULL == data) {
        printf("malloc failed!\n");
        return -1;
    }
    data->data = 0;
    data->next = NULL;
    printf("init link success!\n");

    push_front(data,10);
    push_front(data,11);
    push_front(data,12);
    push_front(data,13);
    push_front(data,14);
    show(data);
    
    SingleLinkNode* temp=NULL;
    temp=find(data,11);
    
    if (NULL == temp) {
        printf("not find!\n");
    } else {
        printf("find!\n");
    }
    
    destory_link(data);
    
    return 0;
}